﻿using RestSharp;
using System;

namespace YmtAuth.AppService.JavaService.Utils
{
    public class JsonRequest : RestRequest
    {
        public JsonRequest()
            : base()
        {
            this.UseJsonDotNetSerializerWrapper();
        }

        public JsonRequest(string resource)
            : base(resource)
        {
            this.UseJsonDotNetSerializerWrapper();
        }

        public JsonRequest(Uri resource)
            : base(resource)
        {
            this.UseJsonDotNetSerializerWrapper();
        }

        public JsonRequest(string resource, Method method)
            : base(resource, method)
        {
            this.UseJsonDotNetSerializerWrapper();
        }

        public JsonRequest(Uri resource, Method method)
            : base(resource, method)
        {
            this.UseJsonDotNetSerializerWrapper();
        }
    }
}
